package com.lqk.netty.listener;

import com.lqk.netty.server.Server;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.stereotype.Component;

/**
 * @author liqiankun@nnuo.com
 * @date 2023/3/30 17:02
 * @description Netty Server 启动入口
 **/
@Slf4j
@Component
public class NettyServerRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        log.info("----Netty Server 已经启动成功----");
        new Server();
    }
}
